﻿using MediatR;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace S.Authorization.API.Application.Command.OrganizationCommand
{
    public class BusinessModelCreateCommand:IRequest<bool>
    {
        /// <summary>
        /// 企业全称
        /// </summary>
        [Column(TypeName = "nvarchar(50)")]
        [MaxLength(50)]
        public string BusinessFullName { get; set; }

        /// <summary>
        /// 企业简称
        /// </summary>

        [Column(TypeName = "nvarchar(50)")]
        [MaxLength(50)]
        public string BusinessName { get; set; }

        /// <summary>
        /// 企业Logo（图片文件）
        /// </summary>
        [Column(TypeName = "nvarchar(200)")]
        [MaxLength(200)]
        public string? BusinessLogo { get; set; }

        /// <summary>
        /// 行业标签（一级行业，二级行业）
        /// </summary>
        [Column(TypeName = "nvarchar(50)")]
        [MaxLength(50)]
        public string BusinessLabel { get; set; }

        /// <summary>
        /// 所在区域（省）ID
        /// </summary>
        public int ProvinceId { get; set; }

        /// <summary>
        /// 所在区域（市）ID
        /// </summary>
        public int CityId { get; set; }

        /// <summary>
        /// 所在区域（区）ID
        /// </summary>
        public int AreaId { get; set; }

        /// <summary>
        /// 详细地址（地图定位）
        /// </summary>
        [Column(TypeName = "nvarchar(50)")]
        [MaxLength(50)]
        public string FullAddress { get; set; }

        /// <summary>
        /// 企业电话
        /// </summary>
        [Column(TypeName = "nvarchar(50)")]
        [MaxLength(50)]
        public string? BusinessPhone { get; set; }

        /// <summary>
        /// 统一社会信用代码
        /// </summary>
        [Column(TypeName = "nvarchar(100)")]
        [MaxLength(100)]
        public string? UnifiedSocialCreditCode { get; set; }

        /// <summary>
        /// 描述
        /// </summary>
        [Column(TypeName = "nvarchar(200)")]
        [MaxLength(200)]
        public string? BusinessDesc { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        [Column(TypeName = "nvarchar(50)")]
        [MaxLength(50)]
        public string CreateBy { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
    }
}
